pushd, popd

   pushd [directory]
   popd

pushd is a lot like cd, except that it stores the current directory before changing it. Later on, popd can be used to restore it. pushd can be used several times, storing a stack of directories.

Using pushd without specifying a directory will store the current directory, but not change it.

Example

this command            changes the current directory to:
============            ================================
cd c:\fdos\bin                    c:\fdos\bin
pushd c:\games                     c:\games
pushd c:\utils                     c:\utils
popd                               c:\games
popd                              c:\fdos\bin

See Also

dirs
Copyright © 2003 Rob Platt
This file forms part of The FreeDOS HTML Help Documentation, and is covered under its terms: see index.htm